import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

import { useCounterStore } from '@/stores/counter'


import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from "./axios"
//import BaiduMap from 'vue-baidu-map-3x'


const app = createApp(App)

const pinia = createPinia()
pinia.use(persist)

app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.provide('$http',axios)


// app.use(BaiduMap, {
//   ak: 'Z7dTkVR6HUyHrZaNzjvMMPXCKQTESTbo'
// });

//app.provide('$router',router)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
 
app.mount('#app')





